import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/style.less'
import './assets/font/iconfont.css'
// require('./Mock')
import {parseTime,} from './utils'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
// use
Vue.use(mavonEditor)

import utils from './utils';   //获取url参数
 
Vue.prototype.$utils = utils;   //注册全局方法


import axios from 'axios'
Vue.prototype.$axios = axios    //全局注册，使用方法为:this.$axios
axios.defaults.withCredentials = true;

Vue.config.productionTip = false
Vue.filter('parseTime', (v) => parseTime(v,'{y}-{m}-{d}'))
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
